package com.bjsxt.chapter9_decorator;

/**
 * @ClassName WaterCar
 * @Description 水上汽车
 * @Author 黑马程序员
 * @Date 11:51 2024/6/22
 * @Version 1.0
 **/
public class WaterCar extends SuperCar{
    public WaterCar(ICar car) {
        super(car);
    }

    public void swim(){
        System.out.println("在水里游!");
    }

    @Override
    public void move() {
        swim();
        super.move();
    }
}
